<script>
	export default {
		onLaunch: async function() {
			console.log('App Launch')
			console.log('开始获取小程序配置文件')
			uni.showLoading({
				mask: true,
				title: '加载中...'
			})
			const [res, err] = await this.$get('https://static-1255951554.cos-website.ap-nanjing.myqcloud.com/config2.json?time=' + new Date().valueOf());
			this.setState({globalConfig: res})
			uni.hideLoading()
			this.setState({
				configComplete: true
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	/*每个页面公共css */
	page {
		width: 100%;
		height: 100%;
	}
</style>
